package main

import "fmt"

func main() {
	fmt.Println("Hello World!")
	var slice1 []int = make([]int, 10)
	fmt.Printf("1, %v\n", slice1)

	// 赋值
	for i := 0; i < len(slice1); i++ {
		slice1[i] = 6 * i
	}

	// 打印
	for i, v := range slice1 {
		fmt.Printf("index: %d, value: %d\n", i, v)
	}

	fmt.Printf("len: %d, cap: %d\n", len(slice1), cap(slice1))

}
